const fs = require('fs');

fs.readFile('./test.txt',function(err,data){
    if(err) throw err;
    console.log(data.toString());
});

console.log('读取文件');